package com.ruikong.dazhi.service.base;

import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageInfo;
import com.ruikong.dazhi.controller.result.BaseResult;
import com.ruikong.dazhi.entity.base.Personnel;
import com.ruikong.dazhi.model.input.UserSearchPageInput;
import com.ruikong.dazhi.model.output.PersonnelOutput;

import javax.servlet.http.HttpSession;
import java.io.UnsupportedEncodingException;
import java.util.List;

/**
 * @program: cpisystem
 * @description:
 * @author: tybengine
 * @create: 2020-11-11 13:17
 **/
public interface IPersonnelService {

    int addPersonAccount(BaseResult result, Personnel personnel) throws UnsupportedEncodingException;


    PageInfo<PersonnelOutput> getPersonnelListPage(UserSearchPageInput input);
    List<Personnel> getPersonnelList();


    int deleteAccount(Personnel personnel);

    int updateAccount(Personnel personnel);

    int updatePassword(JSONObject jsonObject, BaseResult result, HttpSession httpSession) throws UnsupportedEncodingException;

    int resetPassword(Personnel personnel,BaseResult result, HttpSession httpSession) throws UnsupportedEncodingException;

    int invokePersonnel(Personnel personnel);

    int inactivePersonnel(Personnel personnel);

    Personnel getByPersonnelId(int personnelId);

    Integer isExist(Personnel p);
}


